package cn.thoughtworks.school.services;

import cn.thoughtworks.school.feign.UserCenterFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import java.util.Map;

@Service
public class UserCenterService {
    @Autowired
    private UserCenterFeign userCenterFeign;

    public Map getUserInfo(Long userId) {
        return userCenterFeign.getUserById(userId);
    }
}
